package stanford.com.balldating.chat.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import stanford.com.balldating.base.model.SysUser;

@Entity
@Table(name = "friends")
public class Friends implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 7117408937069550755L;
	
	@Id
	@OneToOne
	@JoinColumn(name="add",referencedColumnName="username")
	private SysUser add;
	
	@Id
	@OneToOne
	@JoinColumn(name="be_added",referencedColumnName="username")
	private SysUser beAdded;

	public SysUser getAdd() {
		return add;
	}

	public void setAdd(SysUser add) {
		this.add = add;
	}

	public SysUser getBeAdded() {
		return beAdded;
	}

	public void setBeAdded(SysUser beAdded) {
		this.beAdded = beAdded;
	}
	
	
}
